# -*- coding: utf-8  -*-
# @Time : 2021/8/19  15:28
# @Author : zhangnengbo
# @File : batch_delete.py
# @Company : HPY

import os
file_dir = 'D:\\workspace\\data\\jindi\\mine'

file_dir = 'D:\\workspace\\data\\jindi\\waste'
files = os.listdir(file_dir)
print(files)
l = [i for i in files if '副本' in i]
print(l)

for m in l:
    os.remove(os.path.join(file_dir + '\\' + m))

